import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//导入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//配置国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 导入所有图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

// 注册所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(ElementPlus)
createApp(App).use(store).use(router).use(ElementPlus, { locale: zhCn }).mount('#app')
